# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=shotcut
pkgver=20.07.11
pkgrel=0
pkgdesc="Cross-platform video editor"
url="https://www.shotcut.org"
arch="x86_64 x86" # blocked by qtwebkit and requires opengl
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtmultimedia-dev
	qt5-qtwebsockets-dev qt5-qtx11extras-dev ffmpeg-dev mlt-dev
	qt5-qttools-dev"
subpackages="$pkgname-doc"
source="shotcut-$pkgver.tar.gz::https://github.com/mltframework/shotcut/archive/v$pkgver.tar.gz
	shotcut-melt.patch
	"
options="!check" # No test suite present

build() {
	qmake-qt5 PREFIX="/usr"
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="8590855f252dbf1a1e4aed078da93ea730e4dec2c67420f57babf59e37a8f4d76c808a14872ae68fa400e5057e9be9d42c567c4f0db3e869eefd5115b814d30b  shotcut-20.07.11.tar.gz
2bfefa84c5052838af63dd170f857e17983d6afa0421216a81240f80a264b8bad8cbaca36504ea9d00195f4ab25a4138f8f32a27f271f8a9ade080bdb8f2a28a  shotcut-melt.patch"
